package Day26.java.deom02;

import com.alibaba.fastjson.JSON;

public class Demo04 {
    public static void main(String[] args) {
        Book book = new Book("唐诗三百首","1002","我欲迎风再留住几步");
        //  转换
        String json = JSON.toJSONString(book);
        System.out.println(json);
    }
}
